﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace HamcoWcs.DAL.Migrations
{
    public partial class A4 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "AlternatePaths",
                table: "path_info",
                type: "varchar(4096)",
                maxLength: 4096,
                nullable: false,
                defaultValue: "",
                comment: "备用路径")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<string>(
                name: "DefaultPath",
                table: "path_info",
                type: "varchar(4096)",
                maxLength: 4096,
                nullable: false,
                defaultValue: "",
                comment: "默认路径")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AlternatePaths",
                table: "path_info");

            migrationBuilder.DropColumn(
                name: "DefaultPath",
                table: "path_info");
        }
    }
}
